package com.gmrz.webauthn.protocol.v1.schema;

import com.google.gson.annotations.Expose;


public class AuthenticatorSelectionCriteria {
    @Expose
    private AuthenticatorAttachment authenticatorAttachment;
    @Expose
    private Boolean requireResidentKey;
    @Expose
    UserVerificationRequirement userVerification;

    public AuthenticatorAttachment getAuthenticatorAttachment() {
        return this.authenticatorAttachment;
    }

    public void setAuthenticatorAttachment(AuthenticatorAttachment authenticatorAttachment) {
        this.authenticatorAttachment = authenticatorAttachment;
    }


    public void setRequireResidentKey(boolean requireResidentKey) {
        this.requireResidentKey = requireResidentKey;
    }

    public boolean isRequireResidentKey() {
        if (this.requireResidentKey == null) {
            return false;
        }
        return this.requireResidentKey;
    }

    public UserVerificationRequirement getUserVerification() {
        return this.userVerification;
    }

    public void setUserVerification(UserVerificationRequirement userVerification) {
        this.userVerification = userVerification;
    }
}
